home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BannerMania
/
BannerMania 1.0 1989.ima
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-07-28
|
6KB
|
212 lines
echo off
if not '%1' == '' goto nohelp
:help
cls
echo If you have two floppy disk drives, you can install BannerMania
echo directly onto a floppy disk. To do so, insert a blank, formatted
echo disk into the drive that doesn't contain this disk and type:
echo
echo INSTALL A:
echo
echo If the blank disk is in drive A, or:
echo
echo INSTALL B:
echo
echo If the blank disk is in drive B.
echo
echo
echo To install BannerMania on a hard disk, type:
echo
echo INSTALL x:
echo
echo Where "x" is the letter of the hard disk (C-J). A subdirectory will be
echo created on your hard disk to hold the BannerMania files. The default
echo name of this subdirectory is "\BANNER". To specify a different name,
echo enter it on the command line following the drive letter. For example:
echo
echo INSTALL C: \BMAN (The space between C: and \BMAN is required!)
goto realend
:nohelp
cls
echo
echo INSTALL %1 %2
echo
echo BannerMania version .78 Installation Program
echo
if %1 == a: goto floppy
if %1 == A: goto floppy
if %1 == b: goto floppy
if %1 == B: goto floppy
if %1 == c: goto hard
if %1 == C: goto hard
if %1 == d: goto hard
if %1 == D: goto hard
if %1 == e: goto hard
if %1 == E: goto hard
if %1 == f: goto hard
if %1 == F: goto hard
if %1 == g: goto hard
if %1 == G: goto hard
if %1 == h: goto hard
if %1 == H: goto hard
if %1 == i: goto hard
if %1 == I: goto hard
if %1 == j: goto hard
if %1 == J: goto hard
:badparm
echo * YOU HAVE TYPED INVALID PARAMETERS *
echo
echo The letter of the drive on which to install
echo BannerMania must be in the range of A through J.
echo You must type a colon after the drive letter.
echo
echo If you wish to specify a hard disk sub-directory other than "\BANNER",
echo you must type a space between the drive letter and the directory name.
echo
echo Remember too that if you specify a directory name without a leading
echo backslash, the sub-directory will be created inside the specified
echo drive's current directory.
echo
pause
goto help
:hard
if not '%2' == '' goto custom
:default
if not exist %1\BANNER goto mk_defl
echo * A FILE CALLED "%1\BANNER" ALREADY EXISTS *
echo
echo Please delete "%1\BANNER" or specify a
echo different sub-directory name and try again.
goto end
:mk_defl
echo A sub-directory called %1\BANNER will be created.
echo The BannerMania files will be copied into it.
echo
echo To cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo
pause
echo
echo Creating %1\BANNER ...
md %1\BANNER
echo
echo Copying the program ...
echo BANNER.EXE
copy BANNER.EXE %1\BANNER /V
if not exist %1\BANNER\BANNER.EXE goto diskfull
echo Copying printer driver files ...
copy BANNER.P* %1\BANNER /V
if not exist %1\BANNER\BANNER.PRD goto diskfull
echo Copying font files ...
copy *.FNT %1\BANNER /V
if not exist %1\BANNER\ZURICH.FNT goto diskfull
echo Copying ready-made banner file ...
copy banner.brm %1\BANNER /V
if not exist %1\BANNER\BANNER.BRM goto diskfull
echo
echo All Done!
echo
echo To run BannerMania, type:
echo
echo %1
echo CD \BANNER
goto done
:custom
if not exist %1%2 goto mk_cust
echo * A FILE CALLED "%1%2" ALREADY EXISTS *
echo
echo Please delete "%1%2" or choose a
echo different sub-directory name and try again.
goto end
:mk_cust
echo A sub-directory called %1%2 will be created.
echo The BannerMania files will be copied into it.
echo
echo To cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo
pause
echo
echo Creating %1%2 ...
md %1%2
echo
echo Copying the program ...
echo BANNER.EXE
copy BANNER.EXE %1%2 /V
if not exist %1%2\BANNER.EXE goto diskfull
echo Copying printer driver files ...
copy BANNER.P* %1%2 /V
if not exist %1%2\BANNER.PRD goto diskfull
echo Copying font files ...
copy *.FNT %1%2 /V
if not exist %1%2\ZURICH.FNT goto diskfull
echo Copying ready-made banner file ...
copy BANNER.BRM %1%2 /V
if not exist %1%2\BANNER.BRM goto diskfull
echo
echo All Done!
echo
echo To run BannerMania, type:
echo
echo %1
echo CD %2
goto done
:floppy
if '%2' == '' goto floppyok
:nosubdir
echo * YOU HAVE TYPED AN UNEXPECTED SECOND PARAMETER *
echo
echo You may not install BannerMania in a
echo sub-directory of a floppy disk.
echo
pause
goto help
:floppyok
echo All files on the floppy disk in drive %1 will be erased.
echo The BannerMania files will be copied onto it.
echo
echo If you do NOT want this disk erased,
echo or to cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo
pause
echo
echo Erasing the floppy disk:
del %1\*.*
echo
echo Copying the program ...
echo BANNER.EXE
copy BANNER.EXE %1 /V
if not exist %1\BANNER.EXE goto diskfull
echo Copying printer driver files ...
copy BANNER.P* %1 /V
if not exist %1\BANNER.PRD goto diskfull
echo Copying font files ...
copy *.FNT %1 /V
if not exist %1\ZURICH.FNT goto diskfull
echo Copying ready-made banner files ...
copy BANNER.BRM %1 /V
if not exist %1\BANNER.BRM goto diskfull
echo
echo All Done!
echo
echo To run BannerMania, type:
echo
echo %1
:done
echo BANNER
goto end
:diskfull
echo
echo
echo Installation was NOT successful.
echo The disk, %1 doesn't exist or is too
echo full to hold BannerMania's files.
echo
echo Please free up at least 360K on %1 or
echo install BannerMania on a different disk.
echo
:end
echo
:realend